// AVCapDlg.h : header file
//

#if !defined(AFX_AVCAPDLG_H__6FE2A098_4D4F_43DB_ADA3_59B23B15AF4D__INCLUDED_)
#define AFX_AVCAPDLG_H__6FE2A098_4D4F_43DB_ADA3_59B23B15AF4D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "CVideoWindow.h"
#include "CMsgReceiver.h"
#include "CLiveCapture.h"

/////////////////////////////////////////////////////////////////////////////
// CAVCapDlg dialog

class CGraphController;

class CAVCapDlg : public CDialog, public CMsgReceiver
{
// Construction
public:
	CAVCapDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CAVCapDlg)
	enum { IDD = IDD_AVCAP_DIALOG };
	CEdit	mEditSaveFile;
	CButton	mButtonGrab;
	CButton	mButtonVideoSettings;
	CButton	mButtonOutputSettings;
	CButton	mButtonAudioSettings;
	CButton	mButtonCapture;
	CVideoWindow	mVideoWindow;
	CComboBox	mComboAudioDevices;
	CComboBox	mComboVideoDevices;
	CString	mOutputFile;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAVCapDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	CLiveCapture		mLiveCapture;
	CGraphController *  mController;

	void FillAudioDevices(void);
	void FillVideoDevices(void);

	void CreateController(void);
	void UpdateControls(BOOL inEnable);

	void EnterVideoConnector(void);
	void EnterAudioConnector(void);
	void EnterAudioMixLevel(void);

	virtual bool ReceiveMessage(MessageT inMessage, void * ioParam,
		void * ioParam2);
	virtual bool Respond(NotifyT inNotification, CMsgStation * inStation,
		long inParam1, long inParam2);
	// Generated message map functions
	//{{AFX_MSG(CAVCapDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnButtonAdvancedVideo();
	afx_msg void OnButtonAdvancedAudio();
	afx_msg void OnButtonAdvancedOutput();
	afx_msg void OnDestroy();
	afx_msg void OnSelchangeComboDeviceAudio();
	afx_msg void OnSelchangeComboDeviceVideo();
	afx_msg void OnButtonCapture();
	afx_msg void OnButtonGrab();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_AVCAPDLG_H__6FE2A098_4D4F_43DB_ADA3_59B23B15AF4D__INCLUDED_)
